import java.util.Scanner;

public class Mail {
    public static void main(String[] args) {
        Scanner input=new Scanner(System.in);
        System.out.println("请输入邮箱：");
        String mail=input.next();
        int index1=mail.indexOf("@");
        int index2=mail.indexOf(".");
        if(mail.contains("@")&&mail.contains(".")){
            if(index1!=0&&index2!=0&&index1!=mail.length()&&index2!=mail.length()){
                if(index2-index1>1){
                    System.out.println("输入成功，您的邮箱是："+mail);
                }else{
                    System.out.println("输入有误");
                }
            }else{
                System.out.println("核对后输入");
            }
        }else{
            System.out.println("输入不合法");
        }
    }
}